/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package JFreeChartExtensions.JChartMenu.ChartMenuListeners;

import JFreeChartExtensions.ExtendableChartPanel;
import java.awt.event.ActionEvent;

/**
 *
 * @author Nobody
 */
public class RemoveAllFittersListener extends AbstractChartMenuListener {

    public RemoveAllFittersListener(ExtendableChartPanel chart) {
        super(chart);
    }

    @Override
    public void actionPerformed(ActionEvent e) {
        chart.getDatasetCollection().removeRegressionSeriesInAllCollections();
        chart.getChart().fireChartChanged();
    }
}
